import request from "@/utils/request";

// 查询摄像头分组列表
export function listModelcamgroup(query) {
  return request({
    url: "/ruoyi-device/modelcamgroup/list",
    method: "get",
    params: query,
  });
}

// 查询摄像头分组详细
export function getModelcamgroup(id) {
  return request({
    url: "/ruoyi-device/modelcamgroup/" + id,
    method: "get",
  });
}

// 新增摄像头分组
export function addModelcamgroup(data) {
  return request({
    url: "/ruoyi-device/modelcamgroup",
    method: "post",
    data: data,
  });
}

// 修改摄像头分组
export function updateModelcamgroup(data) {
  return request({
    url: "/ruoyi-device/modelcamgroup/config",
    method: "put",
    data: data,
  });
}

// 删除摄像头分组
export function delModelcamgroup(id) {
  return request({
    url: "/ruoyi-device/modelcamgroup/" + id,
    method: "delete",
  });
}
